package com.panshi.api;

import com.panshi.vo.ArticleT;
import com.panshi.vo.TitleVO;
import com.panshi.vo.WebResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@FeignClient(value = "zx-server", contextId = "zx-app")
public interface ZxAdminApi {

    //所有未审核
    @GetMapping("/zx-app/list")
    @ResponseBody
    WebResult findArticle(int page, int limit);

    //修改未审核
    @PostMapping("/zx-app/upd")
    @ResponseBody
    Boolean upd(@Validated ArticleT articleT);

    //通过审核
    @PostMapping("/zx-app/pass")
    @ResponseBody
    Boolean pass(@Validated ArticleT articleT);
}
